export interface ResponseData {
    code: number | string,
    msg: string,
    result: number
}

// 分页器接口 参数 ts数据类型
export interface OrdersData {
    currentPage: number,
    orderCode?: string,
    pageSize: number,
}
// 订单详情中的 某个商品的 ts数据类型
export interface Goods {
    productName: string,
    productPrice: number,
    productImg: string,
    productQty: number
}
// 所有商品信息
export type AllGoods = Goods[]
// 一条 订单 数据的ts
export interface Orders {
    id?: string | number,
    orderCode: string,
    price: number,
    orderStatus: number | string,
    username: string,
    address: string,
    name: string,
    phone: string,
    createdDt: string,
    orderDetails: AllGoods
}
// 所有订单的ts数据类型
export type AllOrders = Orders[]

// 分页接口返回数据 ts数据类型
export interface OrdersResponseData extends ResponseData {
    "data": {
        pageSize: number,
        currentPage: number,
        totalPage: number,
        totals: number,
        list: AllOrders[]
    }
}